</head>

 <body>
	<?php
		if(__login__==1){
	?>
	<div id="sidebar">
		<div id="minibar" class="common">
			<a href="###" id="open"><img src="_skins/tplimgs/icon-mini-genius.png" border="0" /></a>
			<a href="###" id="close"><img src="_skins/tplimgs/icon-mini-close.png" border="0" style="margin-top:50px;"/></a>
		</div>
		<div id="list" class="common" style="display:none;">
			<ul id="listul" style="float:left;" style="display:none" >
				<li id="list_chat">
					<a href="###">聊天室</a>
					 <div id="main">
						<div id="main_left" style="float:left;margin:0px auto;">
							<div id="chat_m">Loading...</div>
							 <div id="main_l_from">
							 <form method="post" action="javascript:void(0);">
								<!--昵称：<input type="text" name="user" id="user" size="8" value="<?php echo $_SESSION['user']?>">-->
								<!--<input type="text" name="message" id="message" style="width:250px;">-->
								<input type="hidden" name="user" id="user" size="8" value="<?php echo __user_name__; ?>">
								<textarea  name="message" id="message" rows="2" cols="42"></textarea>
								<input type="submit" name="sub" value="发言" id="sub">
							 </div>
							 </FORM>
						</div>

				</li>
				<!--<li>工具栏</li>
				<li>发布房源</li>
				<li>小游戏</li>-->
			</ul>
		</div>
	</div>
	<?php } ?>

  <ul id="bd_main">
	<li>
		<div class="div_top">
			<div id="logo" class="logo left"><a href="index.php"><img src="_skins/tplimgs/logo.jpg" width="149" height="78" border="0"/></a></div>
			<div class="left" style="height:80px;width:780px;">
				<div class="logo_right right greenb">
				<!-- IF logined==0 -->
					<table  border="0">
						<tr>
							<td align="right" width="95">用户名&nbsp;&nbsp;</td>
							<td><input type="text" value="" class="enterinput" id="l_username" name="l_username"/></td>
							<td rowspan="2" valign="top">
								&nbsp;<input id="loginbtn" class="loginbtn"  type="button" value="登录"/>
							</td>
						</tr>
						<tr>
							<td align="right">密码&nbsp;&nbsp;</td>
							<td><input type="password" value="" class="enterinput"  id="l_password" name="l_password" /></td>
						</tr>
						<!--<tr>
							<td>&nbsp;</td>
							<td>
								<input type="radio" name="l_type" value="a" checked />中介 &nbsp;&nbsp;<input type="radio" name="l_type" value="u" />个人
							</td>
						</tr>-->
					</table>
					<!-- ELSE -->
					<table  border="0">
						<tr>
							<td style="padding:8px 0 0 26px">欢迎您，{login_user_name}<a style="margin-left:20px;" class="greenw" href="logout.php">[退出]</a></td>				
						</tr>
						<tr>
							<td align="left">
								<ul class="headitem2" >
									<li>
										<?php if(__user_prop__=="0"){ ?>
										<a href="agent_admin.php">我的风搜网</a>
										<?php }else{ ?>
										<a href="user_admin.php">我的风搜网</a>
										<?php } ?>
									</li>
									<li>
										<a href="###">我的聊天室</a>
									</li>
									<li>
										<a href="###">我的游戏室</a>
									</li>
								</ul>
							</td>
						</tr>
					</table>
					<!-- ENDIF logined -->
					<ul class="headitem">
						<li><a href="###">设为主页</a></li>
						<li><a href="###">加入收藏</a></li>
						<li><a href="register.php">免费注册</a></li>
					</ul>
				</div>
				<div class="logo_left left">
					<p>
						<span class="orangew">南通站</span>&nbsp;&nbsp;<span class="grayw">[</span><a class="greenw" id="morecitylink" href="#">切换城市</a><span class="grayw">]</span>&nbsp;&nbsp;
						<img src="_skins/tplimgs/flag.jpg" border="0" />
					</p>
					<p class="grayw">登录后即可查询详情</p>
					<div id="morecity" style="display:none;z-index:2;"><p>更多城市敬请期待<a href="###" style="margin-left:60px;">关闭</a></p><br>如有意向加盟，请咨询房源热线 <b>0513-89012345</b></div>
				</div>
			</div>
		</div>
	</li>

	<li style="height:40px;">
		<div id="navigator" class="right">
			<ul class="nv_ul left">
				<li class="current" style="margin-left:40px;"><a href="index.php">二手房源</a></li>
				<li><a href="###" class="{}">一手房源</a></li>
				<!--<li><a href="###" class="{}">求购求租</a></li>-->
				<li><a href="###" class="{}">贷款服务商</a></li>
				<li><a href="###" class="{}">装潢服务商</a></li>
				<li><a href="###" class="{}">建材服务商</a></li>
				<li><a href="###" class="{}">税收政策</a></li>
				<li><a href="bbs/">论坛</a></li>
				<li><a href="###">联系我们</a></li>
			<!--	<li style="float:right;width:210px;margin-right:64px;"><span style="font-size:12px;">房源热线</span>&nbsp;&nbsp;<span style="font-size:18px;font-family:tahoma;"><b>0513-89012345</b></span></li>-->
			</ul>
			
		</div>
	</li>
